cmake_minimum_required(VERSION 3.10)
project(Map)
find_package(Boost REQUIRED COMPONENTS system iostreams thread) 

include_directories(
    3rdparty/json/include
    3rdparty/rapidjson
    ${Boost_INCLUDE_DIRS}
)

link_directories(
)

aux_source_directory(. _SOURCES)

#add the executable
add_executable(map ${_SOURCES})
target_link_libraries(map yaml-cpp) 

file(GLOB_RECURSE COPY_LIBS ${CMAKE_CURRENT_SOURCE_DIR} "test.*")
foreach(i ${COPY_LIBS})
    file(COPY ${i} DESTINATION ${CMAKE_BINARY_DIR})
endforeach()
